package cn.htsyb.synergy.maker.model;

/**
 * 表外键元数据实体
 *
 * @author lakeside
 * @email hubin_yuan.410@hotmail.com
 * @date 2019-03-26
 */
public class MetaFKColumn {
    /**
     * 被导入的主键表类别
     */
    protected String pktableCat;
    /**
     * 被导入的主键表模式
     */
    protected String pktableSchem;
    /**
     * 被导入的主键表名称
     */
    protected String pktableName;
    /**
     * 被导入的主键列名称
     */
    protected String pkcolumnName;
    /**
     * 外键表类别
     */
    protected String fktableCat;
    /**
     * 外键表模式
     */
    protected String fkTableSchema;
    /**
     * 外键表名称
     */
    protected String fkTableName;
    /**
     * 外键列名称
     */
    protected String fkColumnName;
    /**
     * 外键中的序列号（值 1 表示外键中的第一列，值 2 表示外键中的第二列）
     */
    protected Integer keySeq;
    /**
     * 更新主键时外键发生的变化
     */
    protected Integer updateRule;
    /**
     * 删除主键时外键发生的变化
     */
    protected Integer deleteRule;
    /**
     * 主键的名称
     */
    protected String pkName;
    /**
     * 外键的名称
     */
    protected String fkName;
    /**
     * 是否可以将对外键约束的评估延迟到提交时间
     */
    protected String deferrability;


    public String getPktableCat() {
        return pktableCat;
    }

    public void setPktableCat(String pktableCat) {
        this.pktableCat = pktableCat;
    }

    public String getPktableSchem() {
        return pktableSchem;
    }

    public void setPktableSchem(String pktableSchem) {
        this.pktableSchem = pktableSchem;
    }

    public String getPktableName() {
        return pktableName;
    }

    public void setPktableName(String pktableName) {
        this.pktableName = pktableName;
    }

    public String getPkcolumnName() {
        return pkcolumnName;
    }

    public void setPkcolumnName(String pkcolumnName) {
        this.pkcolumnName = pkcolumnName;
    }

    public String getFktableCat() {
        return fktableCat;
    }

    public void setFktableCat(String fktableCat) {
        this.fktableCat = fktableCat;
    }

    public String getFkTableSchema() {
        return fkTableSchema;
    }

    public void setFkTableSchema(String fkTableSchema) {
        this.fkTableSchema = fkTableSchema;
    }

    public String getFkTableName() {
        return fkTableName;
    }

    public void setFkTableName(String fkTableName) {
        this.fkTableName = fkTableName;
    }

    public String getFkColumnName() {
        return fkColumnName;
    }

    public void setFkColumnName(String fkColumnName) {
        this.fkColumnName = fkColumnName;
    }

    public Integer getKeySeq() {
        return keySeq;
    }

    public void setKeySeq(Integer keySeq) {
        this.keySeq = keySeq;
    }

    public Integer getUpdateRule() {
        return updateRule;
    }

    public void setUpdateRule(Integer updateRule) {
        this.updateRule = updateRule;
    }

    public Integer getDeleteRule() {
        return deleteRule;
    }

    public void setDeleteRule(Integer deleteRule) {
        this.deleteRule = deleteRule;
    }

    public String getPkName() {
        return pkName;
    }

    public void setPkName(String pkName) {
        this.pkName = pkName;
    }

    public String getFkName() {
        return fkName;
    }

    public void setFkName(String fkName) {
        this.fkName = fkName;
    }

    public String getDeferrability() {
        return deferrability;
    }

    public void setDeferrability(String deferrability) {
        this.deferrability = deferrability;
    }
}
